package com.trustbook.visitor.value;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;


//{"timestamp":1415799604795,"status":415,"error":"Unsupported Media Type",
//"exception":"org.springframework.web.HttpMediaTypeNotSupportedException",
//"message":"Content type 'application/x-www-form-urlencoded' not supported","path":"/visitors"}
@JsonIgnoreProperties(ignoreUnknown = true)
public class MobileVisitor {

	private Long id;
	private String applicant_name;
	private String spouse_name;
	private String present_address;
	private String passport_num;
	private String voter_id;
	private String ration_card_num;
	private String profile_image;
	private String profile_image1;

	public MobileVisitor(Long id, String applicant_name, String spouse_name, String present_address, String passport_num, String voter_id, String ration_card_num, String profile_image,
					String profile_image1) {

		this.id = id;
		this.applicant_name = applicant_name;
		this.spouse_name = spouse_name;
		this.present_address = present_address;
		this.passport_num = passport_num;
		this.voter_id = voter_id;
		this.ration_card_num = ration_card_num;
		this.profile_image = profile_image;
		this.profile_image1 = profile_image1;
	}
	
    @Override
    public String toString() {
        return String.format(
                "Visitor[id=%d, applicant_name='%s', spouse_name='%s', present_address='%s', passport_num='%s', voter_id='%s', ration_card_num='%s']",
                id, applicant_name, spouse_name, present_address, passport_num, voter_id, ration_card_num );
    }

	public String getApplicant_name() {
		return applicant_name;
	}

	public void setApplicant_name(String applicant_name) {
		this.applicant_name = applicant_name;
	}

	public String getSpouse_name() {
		return spouse_name;
	}

	public void setSpouse_name(String spouse_name) {
		this.spouse_name = spouse_name;
	}

	public String getPresent_address() {
		return present_address;
	}

	public void setPresent_address(String present_address) {
		this.present_address = present_address;
	}

	public String getPassport_num() {
		return passport_num;
	}

	public void setPassport_num(String passport_num) {
		this.passport_num = passport_num;
	}

	public String getVoter_id() {
		return voter_id;
	}

	public void setVoter_id(String voter_id) {
		this.voter_id = voter_id;
	}

	public String getRation_card_num() {
		return ration_card_num;
	}

	public void setRation_card_num(String ration_card_num) {
		this.ration_card_num = ration_card_num;
	}

	public String getProfile_image() {
		return profile_image;
	}

	public void setProfile_image(String profile_image) {
		this.profile_image = profile_image;
	}

	public String getProfile_image2() {
		return profile_image1;
	}

	public void setProfile_image2(String profile_image2) {
		this.profile_image1 = profile_image2;
	}


}
